<?php
    $role_type  = C('Common.account_type');
?>
<body style="width:450px;height:300px;" class="body_none">
<div class="pop_cont pop_table">
    <div class="h_a">角色编辑</div>
    <form class="J_ajaxForm" data-role="list" action="<?php echo U('Admin/UserRole/edit'); ?>" method="post" >
        <input type="hidden" name ="id" value="<?php echo $result['id']; ?>">
        <input type="hidden" name ="_modified_" value="<?php echo $result['modified']; ?>">
            <div class="table_full">
              <table width="100%" class="table_form">
                <tr>
                  <th width="100">角色名称：</th>
                  <td><input type="text" name="name" id="name" class="input length_3" value="<?php echo $result['name']; ?>"></td>
                </tr>
                <tr>
                  <th>账号区分：</th>
                  <td>
                  <?php foreach($role_type as $key => $val): ?>
                      <input type="radio" name="role_type" value="<?php echo $key; ?>" id="role_type<?php echo $key; ?>"<?php if($key == $result['role_type']) echo ' checked'; ?>>
                      <label for="role_type<?php echo $key; ?>"><span><?php echo $val; ?></span></label>
                  <?php endforeach; ?>
                  </td>
                </tr>
                <tr>
                  <th>角色备注：</th>
                  <td><textarea class="length_4" name="remark"><?php echo $result['remark']; ?></textarea></td>
                </tr>
                </table>
        </div>
    <div class="pop_bottom">
        <button class="btn fr" id="J_dialog_close" type="button">取消</button>
        <button type="submit" class="btn btn_submit mr10 fr J_ajax_submit_btn">提交</button>
    </div>

    
    </form>
</div>
</body>